fix: api overrides all in config.routes

This commit is contained in:
xdrm-brackets 2018-02-20 19:42:48 +01:00
parent e685dadd55
commit bd4558d1e4
1 changed files with 8 additions and 8 deletions

View File

@ -6,6 +6,14 @@
"routes": { "routes": {
"/api/v/1.0/{uri}": {
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"controller": "api:call",
"arguments": {
"uri": ".*"
}
},
"/js/_SERVER.js": { "/js/_SERVER.js": {
"methods": ["GET"], "methods": ["GET"],
"controller": "js:server", "controller": "js:server",
@ -38,14 +46,6 @@
} }
}, },
"/api/v/1.0/{uri}": {
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"controller": "api:call",
"arguments": {
"uri": ".*"
}
},
"/{any}": { "/{any}": {
"methods": ["GET"], "methods": ["GET"],
"controller": "redirect:home", "controller": "redirect:home",