Blog
Services
Docs
Donate
Status
English
Bahasa Indonesia
Deutsch
English
Español
Esperanto
Filipino
Français
Italiano
Latviešu
Magyar nyelv
Nederlands
Plattdüütsch
Polski
Português de Portugal
Português do Brasil
Slovenščina
Suomi
Svenska
Türkçe
Čeština
Ελληνικά
Български
Русский
Українська
فارسی
日本語
简体中文
繁體中文(台灣)
繁體中文(香港)
한국어
Ark
Search
Create
Migrate
Explore
Login
Blog
Docs
Status
Explore
Login
Ark
Infrastructure
/
ghost
Watch
0
Fork
You've already forked ghost
0
mirror of
https://github.com/TryGhost/Ghost.git
synced
2025-02-24 23:48:13 -05:00
Code
Issues
Activity
61bf54ec88
ghost
/
core
/
server
/
routes
/
index.js
5 lines
89 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Reduce size of ghost.js by moving related Routing code to their own files
2013-11-12 00:27:12 -05:00
module
.
exports
=
{
🎉 Middleware refactor: Give the API its own express App (#7537) refs #4172 * 🎨 Use bodyParser only where it is needed This is a pretty extreme optimisation, however in the interests of killing middleware/index.js it seemed prudent to move towards not having in there that wasn't strictly necessary 😁 We should reassess how apps do this sort of thing, but it seems pretty sane to declare bodyParsing if and only if it is necessary. * 🎨 Move all API code to API router * 🎨 Refactor API into an App, not just a router - Apps have their own rendering engines, only the frontend & the admin panel need views - The API should be JSON only, with minimal middleware - Individual sections within the API could/should be treated as Routers * 🎨 Flatten API middleware inclusion - get rid of the weird middleware object - move the api-only middleware into the middleware/api folder
2016-10-11 09:36:00 +01:00
admin
:
require
(
'./admin'
)
,
frontend
:
require
(
'./frontend'
)
Add jscs task to grunt file and clean up files to adhere to jscs rules. resolves #1920 - updates all files to conform to style settings.
2014-09-10 00:06:24 -04:00
}
;
Reference in a new issue
Copy permalink