mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-27 05:52:03 +07:00
chore: bump version to v1.2.3 - Fix CORS & Update Notification
This commit is contained in:
@@ -3,7 +3,7 @@ namespace App\Config;
|
||||
|
||||
class SiteConfig {
|
||||
const APP_NAME = 'MIVO';
|
||||
const APP_VERSION = 'v1.2.2';
|
||||
const APP_VERSION = 'v1.2.3';
|
||||
const APP_FULL_NAME = 'MIVO - Mikrotik Voucher';
|
||||
const CREDIT_NAME = 'MivoDev';
|
||||
const CREDIT_URL = 'https://github.com/mivodev';
|
||||
|
||||
@@ -27,6 +27,34 @@ class Router {
|
||||
return $this->addRoute('POST', $path, $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a OPTIONS route (Crucial for CORS Preflight)
|
||||
*/
|
||||
public function options($path, $callback) {
|
||||
return $this->addRoute('OPTIONS', $path, $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a PUT route
|
||||
*/
|
||||
public function put($path, $callback) {
|
||||
return $this->addRoute('PUT', $path, $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a PATCH route
|
||||
*/
|
||||
public function patch($path, $callback) {
|
||||
return $this->addRoute('PATCH', $path, $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a DELETE route
|
||||
*/
|
||||
public function delete($path, $callback) {
|
||||
return $this->addRoute('DELETE', $path, $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add route to collection and return $this for chaining
|
||||
*/
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<script>
|
||||
window.MIVO_VERSION = "<?= \App\Config\SiteConfig::APP_VERSION ?>";
|
||||
</script>
|
||||
<script src="/assets/js/modules/update-checker.js"></script>
|
||||
<script>
|
||||
// Global Theme Toggle Logic (Class-based for multiple instances)
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
Reference in New Issue
Block a user