mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 15:01:38 +00:00
Rename 'Plugin' to 'Middleware' across the server code
This commit is contained in:
parent
e3e28d225c
commit
95d7c61921
11 changed files with 62 additions and 57 deletions
|
|
@ -6,8 +6,8 @@ use std::thread;
|
|||
use rand;
|
||||
|
||||
use project::{Project, ProjectLoadError};
|
||||
use plugin::{PluginChain};
|
||||
use plugins::{DefaultPlugin, JsonModelPlugin, ScriptPlugin};
|
||||
use middleware::{MiddlewareChain};
|
||||
use middlewares::{DefaultMiddleware, JsonModelMiddleware, ScriptMiddleware};
|
||||
use vfs::{VfsSession, VfsWatcher};
|
||||
use web;
|
||||
|
||||
|
|
@ -59,10 +59,10 @@ pub fn serve(project_path: &PathBuf, verbose: bool, port: Option<u64>) {
|
|||
};
|
||||
|
||||
lazy_static! {
|
||||
static ref PLUGIN_CHAIN: PluginChain = PluginChain::new(vec![
|
||||
Box::new(ScriptPlugin::new()),
|
||||
Box::new(JsonModelPlugin::new()),
|
||||
Box::new(DefaultPlugin::new()),
|
||||
static ref PLUGIN_CHAIN: MiddlewareChain = MiddlewareChain::new(vec![
|
||||
Box::new(ScriptMiddleware::new()),
|
||||
Box::new(JsonModelMiddleware::new()),
|
||||
Box::new(DefaultMiddleware::new()),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue