Added /api/types route

This commit is contained in:
2019-08-27 18:51:58 +09:00
parent 816ec3f591
commit 34cf83b1ac
6 changed files with 27 additions and 81 deletions

View File

@ -27,7 +27,7 @@ func load() {
var err error
// Manifest
Manifest, err = manifest.FromFile("manifest.json")
Manifest, err = manifest.FromFile("assets/manifest.json")
if err != nil {
panic("Couldn't load manifest.json")
@ -43,7 +43,7 @@ func load() {
ServiceWorker = unsafe.BytesToString(data)
// Organization
data, err = ioutil.ReadFile("organization.json")
data, err = ioutil.ReadFile("assets/organization.json")
if err != nil {
panic("Couldn't load organization.json")

58
assets/manifest.json Normal file
View File

@ -0,0 +1,58 @@
{
"name": "Anime Notifier",
"short_name": "Anime",
"theme_color": "#ef371f",
"background_color": "#f6f6f6",
"icons": [
{
"src": "images/brand/1024.png",
"sizes": "1024x1024",
"type": "image/png"
},
{
"src": "images/brand/512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "images/brand/384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "images/brand/256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "images/brand/220.png",
"sizes": "220x220",
"type": "image/png"
},
{
"src": "images/brand/192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "images/brand/180.png",
"sizes": "180x180",
"type": "image/png"
},
{
"src": "images/brand/144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "images/brand/128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "images/brand/64.png",
"sizes": "64x64",
"type": "image/png"
}
]
}

19
assets/organization.json Normal file
View File

@ -0,0 +1,19 @@
{
"@context":"http://schema.org",
"@type":"Organization",
"name":"Anime Notifier",
"description":"Anime list, tracker, database and notifier for new anime episodes. Create your own anime list and keep track of your progress as you watch.",
"url":"https://notify.moe",
"email":"animenotifierofficial@gmail.com",
"logo":"https://media.notify.moe/images/brand/512.png",
"sameAs":[
"https://www.facebook.com/animenotifier",
"https://twitter.com/animenotifier",
"https://discord.gg/0kimAmMCeXGXuzNF",
"https://github.com/animenotifier/notify.moe"
],
"founder":{
"@type":"Person",
"name":"Eduard Urbach"
}
}